package com.me.videoservice.model.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.me.videoservice.model.common.Pageable;
import java.io.Serializable;
import java.time.LocalDate;
import lombok.Data;

@Data
public class M3u8Query implements Serializable {

  private String app;
  private String stream;
  @JsonFormat(pattern = "yyyy-MM-dd")
  private LocalDate deviceAddDateStart;
  @JsonFormat(pattern = "yyyy-MM-dd")
  private LocalDate deviceAddDateEnd;
  private Pageable pageable;

  public Pageable getPageable() {
    return pageable == null ? new Pageable() : pageable;
  }

}
